Skip to content

Conversation

@smorimoto
Copy link
Collaborator

@smorimoto smorimoto commented Oct 29, 2025

To fix the flagged issue, we should remove the redundant if (routeParam) condition. The push to the appropriate array should happen directly, as we know that, for all code paths that reach this point, routeParam is assigned a non-null object. Remove the if (routeParam) guard and directly push routeParam to its array. Only one code region needs editing: lines 244–246 (inside the lodash.each callback).

Suggested fixes powered by Copilot Autofix. Review carefully before merging.


Note

Always push routeParam into routeParams[routeParam.in] in getRouteParams, removing the unnecessary if (routeParam) guard.

Written by Cursor Bugbot for commit 859da6a. This will update automatically on new commits. Configure here.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2025

⚠️ No Changeset found

Latest commit: 859da6a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@smorimoto smorimoto marked this pull request as ready for review October 29, 2025 00:12
@smorimoto smorimoto merged commit 96f429f into main Oct 29, 2025
11 checks passed
@smorimoto smorimoto deleted the finding-autofix-1c502706 branch October 29, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants